package org.luckyjourney.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.luckyjourney.entity.user.User;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xhy
 * @since 2023-10-24
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User selectId(String phone);

    User selectOpenId(String openid);

    //查用户id
    @Select("select *from regular_users  where id=#{id}")
    public User getById(Long id);
}
